package com.yan.pojo;

import org.springframework.beans.factory.annotation.Autowired;

//中介 代理
public class proxy implements Rent{

   @Autowired
   private Host host;

    @Override
    public void Rent() {
        host.Rent();
        aaa();
        bbb();
    }


    public void  aaa(){
        System.out.println("你得和我签合同吧");
    }
    public void  bbb(){
        System.out.println("你得付我中介费吧");
    }

    public proxy() {
    }

    public void rent(){


    }

    public proxy(Host host) {
        this.host = host;
    }

    public Host getHost() {
        return host;
    }

    public void setHost(Host host) {
        this.host = host;
    }
}
